<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>教室</title>
	<style>
		.box{
			width: 1200px;
			height: 900px;
			margin: 0 auto;
		}
		.top{
			width: 1200px;
			height: 50px;
		}
		.top p{
			font-family: "微软雅黑";
			color:#545454;
			display: inline-block;
		}
		.top a{
			float: right;
			line-height: 50px;
		    text-decoration: none;
			font-size: 20px;
			color:#545454;
		}
		.centre{
			width: 250px;
			height: 600px;
			background-color: #DADADA;
			border-radius: 20px;
			margin-top: 20px;
			float: left;
		}
		.contre2{
			width: 920px;
			height:600px;
/*			border: solid;*/
			margin-top: 3px;
			float: right;
			
		}
		.a1{
			width: 920px;
			height: 50px;
			border:solid #DADADA;
			border-radius: 10px;
			margin-top: 20px;
			color:#545454;
		}
	
        table{
			width:890px;
			height:100px;
			border: solid 1px gray;
			border-collapse: collapse;
			margin: 40px auto;
		}
		th,td{
			width: 250px;
			height: 50px;
			border: solid 1px gray;
		}
		tr th{
			color: gray;
			background-color: #F5F5F6;
		}
		.content a{
			width: 90px;
			height: 40px;
			text-decoration: none;
			font-size: 20px;
			color:#545454;
			background-color: #DADADA;
		}


	</style>
</head>

<body>
<!--<nav th:replace="layouts::navbar"></nav>-->
<!---->
<div class="box">
	<div class="top">
		<img th:src="@{img/教室管理1.png}" alt align="left"/>
		<p>广州科技职业技术大学教室管理系统</p>
	   <a th:href="@{/}">首页</a>
		<a th:href="@{/students}">学生</a>
		<a th:href="@{/classrooms}">教室</a>
		
	</div>
	
	
	<div class="centre">
		<h2 align="center">公告栏</h2>
	</div>
	
<div class="contre2">
	<div class="a1">
		<img th:src="@{img/查找.png}" alt align="left"/>
		<p>空教室查询</p>
	</div>
	<div class="content">
		<table align="center">
			<tr>
				<th>教室名称</th>
				<th>使用状态</th>
				<th>操作</th>
			</tr>
			<tr th:each="aClassrooms :${classrooms}">
				<th th:text="${aClassrooms.name}"></th>
				<th th:text="${aClassrooms.stage}"></th>
				<th><a  th:href="@{/classrooms/update/}+${aClassrooms.getClassroomId()}">更新</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a  th:href="@{/classrooms/del/}+${aClassrooms.getClassroomId()}">删除</a></th>
			</tr>
			
		</table>
<!--		<select th:field="*{students}" multiple="multiple"></select>-->
<!--		<input type="hidden" name="_csrf" th:value="${_csrf.token}" />-->
		<a th:href="@{/classrooms/new}" class="btn btn-primary btn-sm mb-3">新建申请</a>
	</div>
</div>
	
</div>
</body>
</html>
